﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UML2DOC.Controller.Commands;
using System.Windows.Controls;

namespace UML2DOC.Adapters
{
    class AdapaterGetSolutionFileName
    {
        private CommandGetSolutionFile _cmdGetSolutionFileName;

        public AdapaterGetSolutionFileName(Image subject, CommandGetSolutionFile cmdGetSolutionFile)
        {
            _cmdGetSolutionFileName = cmdGetSolutionFile;         
            subject.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(Handler_Click);
        }

        public void Handler_Click(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            _cmdGetSolutionFileName.Execute();
        }

    }
}
